﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Notice.aspx.cs" Inherits="WorkOrder.Notice.Notice"
    EnableEventValidation="false" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>系统公告_工单管理支持系统</title>
    <link href="../css/left.css" type="text/css" rel="STYLESHEET" />
    <link href="../css/site2.css" type="text/css" rel="STYLESHEET" />
    <script language="javascript" type="text/javascript">        //加在head中，PNG无灰色背景
        var tmp = window.navigator.userAgent.toLowerCase().indexOf("MSIE");
        //加在head中，PNG无灰色背景
        function correctPNG() {
            for (var i = 0; i < document.images.length; i++) {
                var img = document.images[i];
                var imgName = img.src.toUpperCase();
                if (imgName.substring(imgName.length - 3, imgName.length) == "PNG") {
                    var imgID = (img.id) ? "id='" + img.id + "' " : "";
                    var imgClass = (img.className) ? "class='" + img.className + "' " : "";
                    var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
                    var imgStyle = "display:inline-block;" + img.style.cssText;
                    if (img.align == "left") imgStyle = "float:left;" + imgStyle;
                    if (img.align == "right") imgStyle = "float:right;" + imgStyle;
                    if (tmp >= 1) {
                        if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    else {
                        if (img.parentNode.href) imgStyle = "cursor:hand;" + imgStyle;
                    }
                    var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
       + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
                    img.outerHTML = strNewHTML;

                }
            }
        }

        if (window.addEventListener) {
            window.addEventListener('DOMContentLoaded', correctPNG, false);   //firefox
            window.addEventListener('load', correctPNG, false);
        } else if (window.attachEvent) {
            window.attachEvent('onload', correctPNG);  //IE
        }
    </script>
</head>
<body style="margin: 0 0 0 0; background-color: #fff; border-left: solid 1px #54a6e2;">
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="Panel1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="btnSearch">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="Panel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Telerik"
            MinDisplayTime="0">
        </telerik:RadAjaxLoadingPanel>
        <table width="100%;" style="border: none 0;">
            <tr>
                <td style="height: 2px;">
                </td>
            </tr>
            <tr>
                <td style="border: solid 1px #9fd6ff; background-image: url('../images/snap3.jpg');
                    height: 24px; color: #0930a5;">
                    &nbsp;&nbsp;<img align="absmiddle" src="../images/doc3.gif" />&nbsp;&nbsp;当前位置：系统公告
                </td>
            </tr>
            <tr>
                <td style="height: 1px;">
                </td>
            </tr>
        </table>
        <table width="100%" border="0">
            <tr>
                <td>
                    <div style="border: solid 1px #9fd6ff; background-color: #fff;">
                        <table width="100%">
                            <tr>
                                <td colspan="2" style="height: 10px;">
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px;">
                                </td>
                                <td>
                                    <img align="absmiddle" src="../images/search.png" style="width: 25px; height: 25px;" />&nbsp;<telerik:RadTextBox
                                        ID="txtSearch" runat="server" ShowButton="True" EmptyMessageStyle-ForeColor="Silver"
                                        EmptyMessage="输入公告类型、标题或发布人等关键字搜索" Width="500px" SelectionOnFocus="SelectAll"
                                        CssClass="TextBox">
                                    </telerik:RadTextBox>&nbsp;<asp:Button ID="btnSearch" CssClass="Button" runat="server"
                                        Text="&nbsp;搜&nbsp;索&nbsp;" OnClick="btnSearch_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <hr />
                                </td>
                            </tr>
                        </table>
                        <table width="100%">
                            <tr>
                                <td style="width: 10px;">
                                </td>
                                <td>
                                    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
                                        <asp:Panel ID="Panel1" runat="server">
                                            <telerik:RadListView ID="RadListView1" runat="server" PageSize="30" AllowPaging="True"
                                                Width="97%" ItemPlaceholderID="ProductsHolder" DataKeyNames="NoticeID" OnPageIndexChanged="RadListView1_PageIndexChanged">
                                                <LayoutTemplate>
                                                    <fieldset id="FieldSet1">
                                                        <asp:Panel ID="ProductsHolder" runat="server" />
                                                        <br />
                                                        <table cellpadding="0" cellspacing="0" width="100%;" style="clear: both;">
                                                            <tr>
                                                                <td>
                                                                    <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="RadListView1"
                                                                        PageSize="30" BorderStyle="None" Font-Names="Arial" Skin="Office2007" Font-Bold="False"
                                                                        Culture="zh-CN">
                                                                        <Fields>
                                                                            <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                                                            <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                                                            <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                                                            <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                                                                                TextBoxWidth="30" />
                                                                            <telerik:RadDataPagerTemplatePageField>
                                                                                <PagerTemplate>
                                                                                    <div style="float: right">
                                                                                        <b>Items
                                                                                            <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                                                                            to
                                                                                            <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize) ? Container.Owner.StartRowIndex+Container.Owner.PageSize : Container.Owner.TotalRowCount %>" />
                                                                                            of
                                                                                            <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                                                                            <br />
                                                                                        </b>
                                                                                    </div>
                                                                                </PagerTemplate>
                                                                            </telerik:RadDataPagerTemplatePageField>
                                                                        </Fields>
                                                                    </telerik:RadDataPager>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </fieldset>
                                                </LayoutTemplate>
                                                <ItemTemplate>
                                                    <div>
                                                        <table>
                                                            <tr>
                                                                <td style="font-family: Arial;">
                                                                    <img align="absmiddle" src="../images/comment_blue.gif" />&nbsp;<a href="#" title="点击查看公告内容"
                                                                        onclick="window.open('ShowNotice.aspx?id=<%# Eval("NoticeID") %>','','location=no,menubar=no,status=no,toolbar=no,resizable=yes,scrollbars=yes,width=1050,height=600');">【<%# Eval("TypeName")%>】&nbsp;<%# Eval("Title")%>&nbsp;&nbsp;[<%# Eval("AuthorrName")%>]&nbsp;[<%# Eval("CreateDate")%>]</a>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </ItemTemplate>
                                            </telerik:RadListView>
                                        </asp:Panel>
                                    </telerik:RadAjaxPanel>
                                    <br />
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
